package com.fita.entity.authority;

import com.demo2do.core.utils.Alias;
import com.fasterxml.jackson.annotation.JsonValue;

/**
 * 资源类型
 * 
 * @author Ysy
 *
 */
@Alias("resourceType")
public enum ResourceType {

    MENU("菜单"),
    
    SUBMENU("子菜单"),
    
    URL("URL"),
    
    ELEMENT("元素");
    
    private String description;
    
    /**
     * @param description
     */
    private ResourceType(String description) {
        this.description = description;
    }

    /**
     * @return the description
     */
    @JsonValue
    public String getDescription() {
        return description;
    }
    
}